<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{% block title %}{% endblock %} WebFolio</title>
<link href="/media/site.css" rel="stylesheet" type="text/css" />
<link href="/media/decogrids-12.css" rel="stylesheet" type="text/css" />
{% block headvars %}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{% endblock %}
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-340027-9']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
	<div id="head">
		<div class="title"><a href="/">WebFolio</a></div>
    	<div id="tools">
    	{% block tools %}
        	<ul>
			{% if request.user.is_anonymous() %}
  				<li><a href="{{ create_login_url() }}">login</a></li>
			{% else %}
				<li>User: {{ request.user }} <a href="{{ create_logout_url('/') }}">Logout</a></li>
			{% endif %}
        	</ul>
        {% endblock %}
    	</div>
    	<div class="visualclear"><!-- --></div>
    	<div id="globalnavi">
    	{% block globalnavi %}
    		<ul class="g_left">
    			<li><a href="/">ホーム</a></li>
    		</ul>
        {% endblock %}
    	{% block globalnavi_right %}

        {% endblock %}
    	</div>
    	<div class="visualclear"><!-- --></div>
    </div>
    
    <div id="mainwrapper">
    	<div id="content">
    		{% block content %}
    		
			{% endblock %}
    	</div>
    	<div class="visualclear"><!-- --></div>
    </div>
    
    <div id="foot">
   		(c) 2010 <a href="http://ngi644.net" target="_blank">ngi644.net</a>
    </div>
    
</body>

</html>
